home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
System
/
lpDaemon SRC
/
README
< prev
next >
Wrap
Text File
|
1993-03-30
|
4KB
|
93 lines
lpDaemon and LPR
----------------
lpDaemon is a utility that implements the Berkeley Line Printer Protocols on
the Macintosh. It normally spools postscript files sent from a unix host and
sends them to a LaserWriter on the Mac network. It may be used to print any
files to an AppleTalk printer or a Serial printer.
LPR is an lpDaemon client that submits jobs to a printer queue. Typically a
text file is to a unix print queue. If the file is of type TEXT the end of
lines are converted to unix style end of lines before sending, otherwise files
are sent as is and marked with the 'literal' flag.
lpDaemon and LPR run under system 7 and require MacTCP.
What's new in this release
--------------------------
0) Several bug fixes.
1) lpDaemon no longer looks for a file called "LaserWriter" in folder called
"Extensions". The name of the LaserWriter driver is specified in the
config file, and must be located in the extensions folder (whatever it is called)
2) Added a NOACTION flag to the config for debugging. This allows files to be spooled
but not printed or deleted.
3) Added a NOMAIL flag to the config to disable the mailing of errors and log files.
4) Added a NOACNT flag to the config to disable the accounting on postscript printers.
5) Allows defining the prefix string for control files (normally cfA)
6) Now does not put up status dialogs when running in the background.
7) Added a status dialog to display what is happening when reading the config file.
8) Improved backgrounding when resolving network names.
Setting Up lpDaemon
-------------------
lpDaemon looks for a folder called "Spool Folder" in your system folder and
a text file call LPD.config in the "Spool Folder" folder. A sample LPD.config
file is included in this package. The sample contains information about setting
up for your installation.
What to do on the Unix Box
--------------------------
The unix machine needs to be told about the printer. This is done by adding an
entry to the printcap file. The following shows such an entry :
pslaser|PostScript LaserWriter:\
:rp=pslaser:lp=:\
:rm=server-mac:sd=/usr/spool/maclpd:\
:lf=/usr/adm/lpd-errs:
to print to this printer you use the command :
lpr -Ppslaser <filename>
The rm entry tells lpd which machine the printer is conected to, in our case
where lpDaemon is running. The rp entry tells lpd which of the printers
connected to this rp to print on. This name will be passed on to lpDaemon which
will map the name to a printer as specified in the config file.
If your LPD.config file on the macintosh has an entry :
PRINTER pslaser PAP "" POSTSCRIPT # default
the print command above would print to your default printer.
What's in the LogFile
---------------------
The log file keeps a record of everything printed through the spooler as well
as all errors. This file can be cleared by using the "Clear Log File" entry
under the "File" menu.
If you are experiencing problems you may want to turn debugging on by adding
a DEBUG command to the config file. This causes extra debugging information
to be sent to the log file.
The log file may be cleared using the "Clear Log File" entry in the file menu.
When this is done the contents are first mailed to the ADMIN specified in the
config file.
What if I Send a non-PostScript file to a PostScript printer
------------------------------------------------------------
lpDaemon checks the first 2 characters in the file looking for %! which it would
assume to be in all postscript file. If these two characters are not there
lpDaemon will reject the file and mail the owner.